/* 
 * File:   ParametersMemento.cpp
 * Author: Gab'z
 * 
 * Created on 29 mai 2012, 10:56
 */

#include "ParametersMemento.h"
#include "../command/UndoableRedoableCommand.h"

namespace calculator {

    ParametersMemento::ParametersMemento(
            UndoableRedoableCommand* undoableRedoableCommand,
            const Parameters* parameters) :
    Memento(undoableRedoableCommand),
    _parameters(parameters) {
    }

    ParametersMemento::ParametersMemento(const ParametersMemento& memento) :
    Memento(memento._undoableRedoableCommand),
    _parameters(memento._parameters) {
    }

    ParametersMemento::~ParametersMemento() {
        delete _parameters;
    }
}
